/*
 * JVM_CP_Utf8.h
 *
 *  Created on: 02.01.2011
 *      Author: Tavin
 */

#include <stdint.h>

#ifndef JVM_CP_UTF8_H_
#define JVM_CP_UTF8_H_

/**
 * Constant Pool UTF8
 */
typedef struct{
	uint8_t type;
	uint16_t size;
	uint8_t data[];

} __attribute__((__packed__)) JVM_CP_UTF8_t;





uint16_t static inline JVM_CP_Utf8_getSize(JVM_CP_UTF8_t * myUtf8)
{
	return(myUtf8->size);
}

#endif /* JVM_CP_UTF8_H_ */



uint16_t JVM_CP_Utf8_getStringSize(JVM_CP_UTF8_t * myUtf8);
uint16_t JVM_CP_Utf8_copyString(JVM_CP_UTF8_t * myUtf8,uint16_t *charArray);
